import request from '@/utils/request'

export function listResource(tenantId, searchValue) {
  return request({
    url: '/ss/sys/courseMaterial/listResource',
    method: 'get',
    params: {tenantId, searchValue}
  })
}

export function list(tenantId, type, tag,) {
  return request({
    url: '/ss/sys/courseMaterial/list',
    method: 'get',
    params: {tenantId, type, tag}
  })
}


export function deleteCourseMaterial(id) {
  return request({
    url: `/ss/sys/courseMaterial/delete`,
    method: 'get',
    params: {id}
  })
}
